import {FILETYPE } from "../constant"


const initPre: fileType[] = []

interface action {
    type: String,
    data: any
}

export default function pdfReducer(preState = initPre, action: action) {
    const { type, data } = action
    switch (type) {
        case FILETYPE:
            return data
        default:
            return preState
    }
}
